package com.example.jsondemo;

import android.util.Log;

public final class User {
    private static String TAG = User.class.getSimpleName();
    private int age;
    private String name;
    private String sex;
    private String address;
    private String like;

    // 显示信息
    public String show() {
        String message = "名字:" + name + " 年龄:" + age + " 性别:" + sex + " 地址:" + address + " 个人爱好:" + like;
        Log.v(TAG, message);
        return message;
    }

    // get set
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLike() {
        return like;
    }

    public void setLike(String like) {
        this.like = like;
    }
}
